/**
 * 
 */
package tests.client.view;

import tests.client.resources.GlobalResources;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Hyperlink;

/**
 * @author Thien
 *
 */
public class FriendList extends Composite {
	public FriendList() {
		
		FlexTable flexTable = new FlexTable();
		
		// content
		flexTable.setText(0, 0, "Friends");		
		Hyperlink addNew = new Hyperlink("+New", false, "newHistoryToken");
		flexTable.setWidget(0, 1, addNew);		
		FlexTable friendsTable = new FlexTable();
		flexTable.setWidget(1, 0, friendsTable);
		flexTable.getFlexCellFormatter().setColSpan(1, 0, 2);
		
		
		// styles		
		flexTable.getCellFormatter().addStyleName(0, 0, GlobalResources.INSTANCE.globalStyles().titleBar());
		flexTable.getCellFormatter().addStyleName(0, 1, GlobalResources.INSTANCE.globalStyles().titleBar());
		
		initWidget(flexTable);
	}

}
